package com.kgc.est.dto;

import com.kgc.est.pojo.Users;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Api
@Data
public class UsersDto implements Serializable {

    private Long id;

    @ApiModelProperty(value = "账号（手机号）")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String userName;

    @ApiModelProperty(value = "性别（0:女,1:男,2:保密）")
    private Integer sex;

    @ApiModelProperty(value = "头像")
    private String faceUrl;

    @ApiModelProperty(value = "token")
    private String token;

    public UsersDto() {
    }
    public UsersDto(Users users) {
        this.id = users.getId();
        this.account = users.getAccount();
        this.password = users.getPassword();
        this.userName = users.getUserName();
        this.sex = users.getSex();
        this.faceUrl = users.getFaceUrl();
    }
}
